<?php

class logisticsmanager_waybill_360buy extends logisticsmanager_waybill_abstract implements logisticsmanager_waybill_interface{
    //获取物流公司
    public function logistics($logistics_code) {
        $logistics = array(
            'SOP'=>array('code'=>'SOP','name'=>'SOP'),
        );

        if(!empty($logistics_code)) {
            return $logistics[$logistics_code];
        }

        return $logistics;
    }

    public function businessType($logistics_code) {
        $businessType = array(
            'SOP'=>1,
        );

        if(!empty($logistics_code)) {
            return $businessType[$logistics_code];
        }

        return $businessType;
    }

    //获取物流公司编码
    public function logistics_code($businessType) {
        $logistics_code = array(
            1 => 'SOP',
        );

        if(!empty($businessType)) {
            return $logistics_code[$businessType];
        }

        return $logistics_code;
    }

    

    /**
     * 获取缓存中的运单号前动作
     *
     * @return void
     * @author 
     **/
    public function pre_get_waybill()
    {
        $rs = array('rsp'=>'succ','msg'=>'','data'=>'');
        
        if ($this->_shop['addon']['type'] != 'SOP') {
            $rs['rsp'] = 'fail';
        }

        return $rs;
    }

    


    
}